/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.banconacion.servlet;

import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.io.IOException;

/**
 *
 * @author igorov
 */
public class DeslogueoServlet extends HttpServlet {

    private static final long serialVersionUID = 2652225997622140246L;

    protected void service(
            HttpServletRequest request,
            HttpServletResponse response)
            throws ServletException, IOException {
        
        HttpSession lasesion = request.getSession(true);
        lasesion.setAttribute("usuario", null);
        request.getRequestDispatcher("LogueoBN.jsp").forward(request, response);
    }
}
